package models;

import siena.*;

public class User extends Model {

        @Id(Generator.AUTO_INCREMENT)
        public Long id;
        @Max(200) 
        public String userName;
        @Max(200) 
        public String firstName;
        @Max(200) 
        public String lastName;
        @Max(200) 
        public String password;
        @Max(200) 
        public String city;

        public static Query<User> all() {
                return Model.all(User.class);
        }
        public String toString() {
            return userName;
        }
}
